import {SET_HOME_NAME} from '../actions/actionTypes'

const initialState={
    name:'home'
}

function reducer(state=initialState,action){
    switch(action.type){
        case SET_HOME_NAME:
            return {...state,...{name:action.name}}
        default:
            return state;
    }
}

export default reducer;